﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Microsoft.Samples.Data.eSqlBlast.WebShell._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>eSqlBlastWeb (1.07.12.18)</title>
	<style type="text/css">

#form1 {
	font-family: Verdana;
	font-size: small;
}
#TextArea1 {
	height: 411px;
	width: 714px;
}
</style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    	<h2>
			eSqlBlast</h2>
    
    </div>
		<asp:MultiView ID="MainMultiView" runat="server" ActiveViewIndex="0">
			<asp:View ID="ConnectionView" runat="server" OnActivate="Model_SelectedIndexChanged">
				<h3>
					<asp:Label ID="ConnectionViewConnectionButton" runat="server" 
					Text="Connection" Font-Bold="True" Font-Italic="False" 
					ForeColor="Black"></asp:Label>
					&nbsp;<asp:LinkButton ID="ConnectionViewQueryButton" runat="server" 
					onclick="ViewQuery" 
					Font-Bold="False" Font-Italic="False" ForeColor="Blue">Query</asp:LinkButton>
					&nbsp;<asp:LinkButton ID="ConnectionViewResultsButton" runat="server" 
					onclick="ViewResults" 
					Font-Bold="False" Font-Italic="False" ForeColor="Blue">Results</asp:LinkButton>
					&nbsp;<asp:LinkButton ID="ConnectionViewAdvancedButton" runat="server" 
					onclick="ViewAdvanced" 
					Font-Bold="False" Font-Italic="False" ForeColor="Blue">Advanced</asp:LinkButton>
					&nbsp;</h3>
				<p>
					&nbsp;</p>
				Choose an existing Model: 
				<asp:DropDownList ID="Model" 
				runat="server" AutoPostBack="True" 
				onselectedindexchanged="Model_SelectedIndexChanged">
													<asp:ListItem Value="0">Aruba</asp:ListItem>
													<asp:ListItem Value="1">Northwind</asp:ListItem>
													<asp:ListItem Value="2">AdventureWorks</asp:ListItem>
				</asp:DropDownList>
				<br />
				<br />
				<br />
				Entity Connection String:<br />
				<asp:Label ID="EntityConnectionString" 
				runat="server" BorderColor="Black" BorderWidth="0px" 
				Font-Italic="True" ForeColor="#444444" 
				Font-Bold="True"></asp:Label>
				<br />
				<br />
				<br />
				<p>
				<asp:Xml ID="ModelDefinition" runat="server" 
                        TransformSource="~/bin/csdl.xsl" />
				&nbsp;</p>
				<br />
				<br />
			</asp:View>
			<asp:View ID="QueryView" runat="server">
				<h3>
					<asp:LinkButton ID="QueryViewConnectionButton" runat="server" 
					onclick="ViewConnection" 
					Font-Bold="False" Font-Italic="False" ForeColor="Blue">Connection</asp:LinkButton>
					&nbsp;<asp:Label ID="QueryViewQueryButton" runat="server" Text="Query"
					Font-Bold="True" Font-Italic="False" ForeColor="Black"></asp:Label>
					&nbsp;<asp:LinkButton ID="QueryViewResultsButton" runat="server" 
					onclick="ViewResults" 
					Font-Bold="False" Font-Italic="False" ForeColor="Blue">Results</asp:LinkButton>
					&nbsp;<asp:LinkButton ID="QueryViewAdvancedButton" runat="server" 
					onclick="ViewAdvanced" 
					Font-Bold="False" Font-Italic="False" ForeColor="Blue">Advanced</asp:LinkButton>
					&nbsp;</h3>
				<p>
					&nbsp;</p>
				<p>
					Enter Entity SQL queries:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<asp:CheckBox ID="FullExceptions" runat="server" 
					Text="Full exceptions" Width="142px" />
					&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="Execute" runat="server" Font-Bold="True" ForeColor="Red" 
					PostBackUrl="~/Default.aspx" Text="Execute!" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
				<asp:TextBox ID="QueryText" runat="server" Columns="100" Rows="30" 
				TextMode="MultiLine"></asp:TextBox>
				<br />
				<br />
			</asp:View>
			<asp:View ID="ResultsView" runat="server">
				<h3>
					<asp:LinkButton ID="ResultsViewConnectionButton" runat="server" 
					onclick="ViewConnection"
					Font-Bold="False" Font-Italic="False" ForeColor="Blue">Connection</asp:LinkButton>
					&nbsp;<asp:LinkButton ID="ResultsViewQueryButton" runat="server" 
					onclick="ViewQuery" 
					Font-Bold="False" Font-Italic="False" ForeColor="Blue">Query</asp:LinkButton>
					&nbsp;<asp:Label ID="ResultsViewResultsButton" runat="server" Text="Results"
					Font-Bold="True" Font-Italic="False" ForeColor="Black">
					</asp:Label>
					&nbsp;<asp:LinkButton ID="ResultsViewAdvancedButton" runat="server" 
					onclick="ViewAdvanced" 
					Font-Bold="False" Font-Italic="False" ForeColor="Blue">Advanced</asp:LinkButton>
					&nbsp;&nbsp;</h3>
				<p>
					&nbsp;</p>
				<p>
					<asp:Xml ID="Results" runat="server" 
                        
                        TransformSource="~/bin/default.xsl" />
					&nbsp;</p>
			</asp:View>
		</asp:MultiView>
    	<br />
		<br />
		<asp:Label ID="Label1" runat="server" 
		Text="Author: Zlatko Michailov (http://blogs.msdn.com/esql)" Font-Size="Smaller"></asp:Label>
    </form>
</body>
</html>
